<template>
    <div>
        <!-- <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="用户名">
              <el-input v-model="form.userName" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="专家等级">
              <el-select v-model="form.userType" placeholder="请选择">
                <el-option label="一级用户" value="00"></el-option>
                <el-option label="二级用户" value="000"></el-option>
                <el-option label="专家" value="0000"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="密码">
              <el-input v-model="form.password" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="手机号">
              <el-input v-model="form.phonenumber" style="width:500px"></el-input>
            </el-form-item>
            <el-button type="primary" @click="addUser()">登录</el-button>
        </el-form> -->
        <el-form ref="Maintain" :model="Maintain" label-width="80px">
            <el-form-item label="通信地址">
              <el-input v-model="Maintain.address" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="学位">
              <el-input v-model="Maintain.degree" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="配额机构id">
              <el-input v-model="Maintain.deptQuotaId" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="学历">
              <el-input v-model="Maintain.education" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="邮箱">
              <el-input v-model="Maintain.email" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="名字">
              <el-input v-model="Maintain.name" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="职称">
              <el-input v-model="Maintain.occupation" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="身份证">
              <el-input v-model="Maintain.peopleId" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="手机号">
              <el-input v-model="Maintain.phonenumber" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="职务">
              <el-input v-model="Maintain.post" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="性别">
              <el-select v-model="Maintain.sex" placeholder="请选择">
                <el-option label="男" value="0"></el-option>
                <el-option label="女" value="1"></el-option>
                <el-option label="未知" value="2"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="摘要">
              <el-input v-model="Maintain.summary" style="width:500px"></el-input>
            </el-form-item>
            <el-form-item label="工作单位">
              <el-input v-model="Maintain.workUnit" style="width:500px"></el-input>
            </el-form-item>
            <el-button type="primary" @click="addUser()">登录</el-button>
        </el-form>
    </div>
</template>
<script>
import {UserList,deptList,topicSonList} from '@/axios/axios-api'
export default {
    data(){
        return {
            form:{
                userName:'',
                userType:'',
                password:'',
                phonenumber:''
            },
            Maintain:{
                address:'',
                degree:'',
                deptQuotaId:'',
                education:'',
                email:'',
                name:'',
                occupation:'',
                peopleId:'',
                phonenumber:'',
                post:'',
                sex:'',
                summary:'',
                workUnit:'',
            },
            Authorization:''
        }
    },
    methods:{
        addUser(){
            // 用户信息用户列表
            UserList().then(res=>{
                console.log(res);
            })

            // 部门
            deptList().then(res=>{
                console.log(res);
            })
            // 查询子课题列表
            topicSonList().then(res=>{
                console.log(res);
            })
        }
    }
}
</script>

<style lang="less" scoped>
body{
    margin: 0;
    padding: 0;
    margin: auto;
}
</style>